package actions;

import java.awt.event.ActionEvent;

import client_gui.ClientWindow;
import client_gui.FindUserDialog;

public class FindUserAction extends RLMAbstractAction {

	public FindUserAction(ClientWindow owner) {
		setActionOwner(owner);
//		putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_F8, 0));
		putValue(SMALL_ICON, loadIcon("images/find.png"));
		putValue(NAME, "Find User");
		putValue(SHORT_DESCRIPTION, "Pretraga korisnika");
	}
	
	public void actionPerformed(ActionEvent e) {
		FindUserDialog findDialog = new FindUserDialog(getActionOwner());
		findDialog.setVisible(true);
	}
	
}
